package com.googlecode.wicketcharts.showcase;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.request.mapper.parameter.PageParameters;

import com.googlecode.wicketcharts.highcharts.HighChartContainer;
import com.googlecode.wicketcharts.showcase.links.UpdateChartLink;
import com.googlecode.wicketcharts.showcase.options.BasicAreaChartOptions;
import com.googlecode.wicketcharts.showcase.options.BasicLineChartOptions;
import com.googlecode.wicketcharts.showcase.options.ComboChartOptions;
import com.googlecode.wicketcharts.showcase.options.SplineWithSymbolsOptions;
import com.googlecode.wicketcharts.showcase.options.StackedAndGroupedColumnChartOptions;

public class HomePage extends WebPage {

	private static final long serialVersionUID = 1L;

	public HomePage(final PageParameters parameters) {

		// add the chart to your page
		final HighChartContainer chart = new HighChartContainer("chart",
				new BasicLineChartOptions());
		add(chart);

		add(new UpdateChartLink("line", chart, new BasicLineChartOptions()));
		add(new UpdateChartLink("splineWithSymbols", chart, new SplineWithSymbolsOptions()));
		add(new UpdateChartLink("area", chart, new BasicAreaChartOptions()));
		add(new UpdateChartLink("stackedColumn", chart, new StackedAndGroupedColumnChartOptions()));
		add(new UpdateChartLink("combo", chart, new ComboChartOptions()));

	}
}
